<div style="clear: both;"></div>
<div class="cont">
	<? foreach ($social as $key => $value): ?>
		<? if (!empty($value->link)): ?>
			<div class="social"><a href="<?= $value->link ?>"><img src="<?= URL::site('static/uploads/social/'.$value->image) ?>" alt="" /><?= $value->title ?></a></div>
		<? else: ?>
			<div class="social"><img src="<?= URL::site('static/uploads/social/'.$value->image) ?>" alt="" /><?= $value->title ?></div>
		<? endif ?>
		<?= (($key + 1) % 7 == 0) ? '<div style="clear: both"></div>' : '' ?>
	<? endforeach ?>
</div>